package communication

import (
	"io/ioutil"
	"log"
	"net/http"
)

func HTTPConnect(url string) {
	resp, err := http.Get(url)
	if err != nil {
		log.Println("HTTP Connection Error:", err)
		return
	}
	defer resp.Body.Close()
	body, err := ioutil.ReadAll(resp.Body)
	if err != nil {
		log.Println("HTTP Read Error:", err)
		return
	}
	log.Println("HTTP Response:", string(body))
	// Add further processing logic here
}
